package com.ck.model.company.dto;

import java.util.List;

/**
 * 终端分组树形列表DTO(节目选择投放终端用)
 *
 * @author linqiang
 */
public class CpDeviceGroupTreeListForProgramDTO {
    /**
     * 终端分组主键
     */
    private Long deviceGroupId;
    /**
     * 父主键
     */
    private String pid;
    /**
     * 分组名称
     */
    private String label;
    /**
     * 分组码
     */
    private String groupCode;
    /**
     * 是否展开分组
     */
    private Boolean open;
    /**
     * 子分组
     */
    private List<CpDeviceGroupTreeListForProgramDTO> children;
    /**
     * 是否选中
     */
    private Boolean checked;

    public Long getDeviceGroupId() {
        return deviceGroupId;
    }

    public void setDeviceGroupId(Long deviceGroupId) {
        this.deviceGroupId = deviceGroupId;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public String getGroupCode() {
        return groupCode;
    }

    public void setGroupCode(String groupCode) {
        this.groupCode = groupCode;
    }

    public Boolean isOpen() {
        return open;
    }

    public void setOpen(Boolean open) {
        this.open = open;
    }

    public List<CpDeviceGroupTreeListForProgramDTO> getChildren() {
        return children;
    }

    public void setChildren(List<CpDeviceGroupTreeListForProgramDTO> children) {
        this.children = children;
    }

    public Boolean getChecked() {
        return checked;
    }

    public void setChecked(Boolean checked) {
        this.checked = checked;
    }

    @Override
    public String toString() {
        return "CpDeviceGroupTreeListForProgramDTO{" +
                "deviceGroupId=" + deviceGroupId +
                ", pid='" + pid + '\'' +
                ", label='" + label + '\'' +
                ", groupCode='" + groupCode + '\'' +
                ", open=" + open +
                ", children=" + children +
                ", checked=" + checked +
                '}';
    }
}
